[INFO] cloning repository https://github.com/SynCROSS/learning-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SynCROSS/learning-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d09571d996b8ae92f1f4f1c5fac067f44cb24253
[INFO] checking SynCROSS/learning-rust against master#9610dfe5a9a731ced1ea4923ecbd0c57fe367898 for beta-170-4
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSynCROSS%2Flearning-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/SynCROSS/learning-rust on toolchain 9610dfe5a9a731ced1ea4923ecbd0c57fe367898
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/SynCROSS/learning-rust
[INFO] finished tweaking git repo https://github.com/SynCROSS/learning-rust
[INFO] tweaked toml for git repo https://github.com/SynCROSS/learning-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/SynCROSS/learning-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0a9700a82c99a99038c884b25c1b5f0456910cb15527b363ca189f7a32638974
[INFO] running `Command { std: "docker" "start" "-a" "0a9700a82c99a99038c884b25c1b5f0456910cb15527b363ca189f7a32638974", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0a9700a82c99a99038c884b25c1b5f0456910cb15527b363ca189f7a32638974", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0a9700a82c99a99038c884b25c1b5f0456910cb15527b363ca189f7a32638974", kill_on_drop: false }`
[INFO] [stdout] 0a9700a82c99a99038c884b25c1b5f0456910cb15527b363ca189f7a32638974
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+9610dfe5a9a731ced1ea4923ecbd0c57fe367898" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 53777a2565e34ed25e1891894bcac032fdcf87b7a7d07d9f64cfbb94290893f2
[INFO] running `Command { std: "docker" "start" "-a" "53777a2565e34ed25e1891894bcac032fdcf87b7a7d07d9f64cfbb94290893f2", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.86
[INFO] [stderr]     Checking rand_os v0.1.3
[INFO] [stderr]     Checking rand v0.6.5
[INFO] [stderr]     Checking learning-rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0308]: `if` and `else` have incompatible types
[INFO] [stdout]   --> src/lib.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 36 | /       if switch {
[INFO] [stdout] 37 | | /         NewsArticle {
[INFO] [stdout] 38 | | |             headline: String::from("Penguins win the Stanley Cup Championship!"),
[INFO] [stdout] 39 | | |             location: String::from("Pittsburgh, PA, USA"),
[INFO] [stdout] 40 | | |             author: String::from("Iceburgh"),
[INFO] [stdout] ...  | |
[INFO] [stdout] 43 | | |             ),
[INFO] [stdout] 44 | | |         }
[INFO] [stdout]    | | |_________- expected because of this
[INFO] [stdout] 45 | |       } else {
[INFO] [stdout] 46 | | /         Tweet {
[INFO] [stdout] 47 | | |             username: String::from("horse_ebooks"),
[INFO] [stdout] 48 | | |             content: String::from("of course, as you probably already know, people"),
[INFO] [stdout] 49 | | |             reply: false,
[INFO] [stdout] 50 | | |             retweet: false,
[INFO] [stdout] 51 | | |         }
[INFO] [stdout]    | | |_________^ expected `NewsArticle`, found `Tweet`
[INFO] [stdout] 52 | |       }
[INFO] [stdout]    | |_______- `if` and `else` have incompatible types
[INFO] [stdout]    |
[INFO] [stdout] help: you could change the return type to be a boxed trait object
[INFO] [stdout]    |
[INFO] [stdout] 35 | fn returns_summarizable(switch: bool) -> Box<dyn Summary> {
[INFO] [stdout]    |                                          ~~~~~~~        +
[INFO] [stdout] help: if you change the return type to expect trait objects, box the returned expressions
[INFO] [stdout]    |
[INFO] [stdout] 37 ~         Box::new(NewsArticle {
[INFO] [stdout] 38 |             headline: String::from("Penguins win the Stanley Cup Championship!"),
[INFO] [stdout]  ...
[INFO] [stdout] 43 |             ),
[INFO] [stdout] 44 ~         })
[INFO] [stdout] 45 |     } else {
[INFO] [stdout] 46 ~         Box::new(Tweet {
[INFO] [stdout] 47 |             username: String::from("horse_ebooks"),
[INFO] [stdout]  ...
[INFO] [stdout] 50 |             retweet: false,
[INFO] [stdout] 51 ~         })
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `if` and `else` have incompatible types
[INFO] [stdout]   --> src/lib.rs:46:9
[INFO] [stdout]    |
[INFO] [stdout] 36 | /       if switch {
[INFO] [stdout] 37 | | /         NewsArticle {
[INFO] [stdout] 38 | | |             headline: String::from("Penguins win the Stanley Cup Championship!"),
[INFO] [stdout] 39 | | |             location: String::from("Pittsburgh, PA, USA"),
[INFO] [stdout] 40 | | |             author: String::from("Iceburgh"),
[INFO] [stdout] ...  | |
[INFO] [stdout] 43 | | |             ),
[INFO] [stdout] 44 | | |         }
[INFO] [stdout]    | | |_________- expected because of this
[INFO] [stdout] 45 | |       } else {
[INFO] [stdout] 46 | | /         Tweet {
[INFO] [stdout] 47 | | |             username: String::from("horse_ebooks"),
[INFO] [stdout] 48 | | |             content: String::from("of course, as you probably already know, people"),
[INFO] [stdout] 49 | | |             reply: false,
[INFO] [stdout] 50 | | |             retweet: false,
[INFO] [stdout] 51 | | |         }
[INFO] [stdout]    | | |_________^ expected `NewsArticle`, found `Tweet`
[INFO] [stdout] 52 | |       }
[INFO] [stdout]    | |_______- `if` and `else` have incompatible types
[INFO] [stdout]    |
[INFO] [stdout] help: you could change the return type to be a boxed trait object
[INFO] [stdout]    |
[INFO] [stdout] 35 | fn returns_summarizable(switch: bool) -> Box<dyn Summary> {
[INFO] [stdout]    |                                          ~~~~~~~        +
[INFO] [stdout] help: if you change the return type to expect trait objects, box the returned expressions
[INFO] [stdout]    |
[INFO] [stdout] 37 ~         Box::new(NewsArticle {
[INFO] [stdout] 38 |             headline: String::from("Penguins win the Stanley Cup Championship!"),
[INFO] [stdout]  ...
[INFO] [stdout] 43 |             ),
[INFO] [stdout] 44 ~         })
[INFO] [stdout] 45 |     } else {
[INFO] [stdout] 46 ~         Box::new(Tweet {
[INFO] [stdout] 47 |             username: String::from("horse_ebooks"),
[INFO] [stdout]  ...
[INFO] [stdout] 50 |             retweet: false,
[INFO] [stdout] 51 ~         })
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `learning-rust` (lib) due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `learning-rust` (lib test) due to 2 previous errors
[INFO] running `Command { std: "docker" "inspect" "53777a2565e34ed25e1891894bcac032fdcf87b7a7d07d9f64cfbb94290893f2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "53777a2565e34ed25e1891894bcac032fdcf87b7a7d07d9f64cfbb94290893f2", kill_on_drop: false }`
[INFO] [stdout] 53777a2565e34ed25e1891894bcac032fdcf87b7a7d07d9f64cfbb94290893f2
